﻿using System;
using System.Xml;


namespace WITD
{
    /// <summary>
    /// Class to support listing, selecting, and importing work item type definitions.
    /// </summary>
    public class ImportableWIT
    {
        private String _name;
        private XmlDocument _definition;

        /// <summary>
        /// The name of the WIT.
        /// </summary>
        public String Name
        {
            get
            {
                return _name;
            }
            set
            {
                _name = value;
            }
        }

        /// <summary>
        /// The Xml that defines the WIT.
        /// </summary>
        public XmlDocument Definition
        {
            get
            {
                return _definition;
            }
            set
            {
                _definition = value;
            }
        }

        /// <summary>
        /// Constructor: creates a new instance of the ImprotableWIT class.
        /// </summary>
        /// <param name="newName">The name of this WIT.</param>
        /// <param name="newDefinition">The Xml that defines this instance.</param>
        public ImportableWIT(String newName, XmlDocument newDefinition)
        {
            _name = newName;
            _definition = newDefinition;
        }
    }
}
